package gameobjects;

import java.util.Stack;
import java.util.Collections;

public class CardStack extends Stack<Card>{
	
	
	/**
	 * creates an empty new CardStack
	 */
	public CardStack(){
		super();
		
	}
	
	/**
	 * Shuffles the stack of cards
	 */
	public void shuffle(){
		// Collections.shuffle expects a list. Normally, the
		// ADT of a stack doesn't support list operations like
		// getting or setting the data at a specific index,
		// but the friendly developers at Oracle have been so
		// kind as to make a Stack indirectly inherit from it.
		Collections.shuffle(this);
	}

}
